import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router' 

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    redirect: '/screenPage'
  },
  {
    path: '/screenPage',
    name: 'screenPage',
    component: () => import('../views/screenPage.vue')
  },
  // {
  //   path: '/stockPage',
  //   name: 'stockPage',
  //   component: () => import('../views/stockPage.vue')
  // },
  // {
  //   path: '/hotPage',
  //   name: 'hotPage',
  //   component: () => import('../views/hotPage.vue')
  // },
  // {
  //   path: '/rankPage',
  //   name: 'rankPage',
  //   component: () => import('../views/rankPage.vue')
  // },
  // {
  //   path: '/mapPage',
  //   name: 'mapPage',
  //   component: () => import('../views/mapPage.vue')
  // },
  // {
  //   path: '/sellerPage',
  //   name: 'sellerPage',
  //   component: () => import('../views/sellerPage.vue')
  // },
  // {
  //   path: '/trendPage',
  //   name: 'trendPage',
  //   component: () => import('../views/trendPage.vue')
  // }
  // {
  //   path: '/',
  //   name: 'Home',
  //   component: Home
  // },
  // {
  //   path: '/about',
  //   name: 'About',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  // }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
